package cn.lopr.im.api.dao;

import cn.lopr.im.api.bean.Friend;
import cn.lopr.im.api.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByRecord(User record);

    List<User> selectByFriend(Friend record);

    int updateByRecord(User record);

    List<User> selectByPhone(@Param(value = "content") String content);

    List<User> selectByPhones(List<String> phones);

}